From: Florian Müllner Date: Thu, 20 Apr 2023 11:40:40 +0000 (+0200) Subject: panel: Drop unnecessary captured-event handler X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~364^2^2~30 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cd862aa53ebf04b6f9c450885b26e4bf2773d0fc;p=gnome-shell.git panel: Drop unnecessary captured-event handler The handler dates back to commit 50f248ec5b2a0 in 2011, and is part of the original hack of making the activities button a PanelMenu.Button while suppressing its menu. By now, panel buttons without a menu have been properly supported for years, but somehow that bit of the hack stuck around, even though it is no longer actually needed (probably since the introduction of DummyMenu. Part-of: --- diff --git a/js/ui/panel.js b/js/ui/panel.js index 19a28dedc..03551c5ec 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -274,15 +274,6 @@ class ActivitiesButton extends PanelMenu.Button { return DND.DragMotionResult.CONTINUE; } - vfunc_captured_event(event) { - if (event.type() == Clutter.EventType.BUTTON_PRESS || - event.type() == Clutter.EventType.TOUCH_BEGIN) { - if (!Main.overview.shouldToggleByCornerOrButton()) - return Clutter.EVENT_STOP; - } - return Clutter.EVENT_PROPAGATE; - } - vfunc_event(event) { if (event.type() == Clutter.EventType.TOUCH_END || event.type() == Clutter.EventType.BUTTON_RELEASE) {